package com.jiang.books.service;

import java.math.BigInteger;
import java.util.List;

import com.jiang.books.domain.User;
import com.jiang.books.domain.UserBook;

public interface UserBookService {
	
	// Find a Book by User Id
	public List<UserBook> findByUser(User user);
	public List<UserBook> findByUserId(BigInteger userId);

	public UserBook findById(BigInteger id);
	
	// Insert or update a Book	
	public UserBook save(UserBook book);
	
	// Delete a Book	
	public void delete(UserBook book);
	
}